<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: apps/point_cloud_editor/include/pcl/apps/point_cloud_editor/deleteCommand.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('delete_command_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">deleteCommand.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="delete_command_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#ifndef DELETE_COMMAND_H_</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#define DELETE_COMMAND_H_</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="command_8h.html">pcl/apps/point_cloud_editor/command.h</a>&gt;</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="local_types_8h.html">pcl/apps/point_cloud_editor/localTypes.h</a>&gt;</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="copy_buffer_8h.html">pcl/apps/point_cloud_editor/copyBuffer.h</a>&gt;</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="selection_8h.html">pcl/apps/point_cloud_editor/selection.h</a>&gt;</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="class_delete_command.html">   49</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_delete_command.html">DeleteCommand</a> : <span class="keyword">public</span> <a class="code" href="class_command.html">Command</a></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;{</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_delete_command.html#a8fadac20f0112e6602ae4cf0abaa8f39">   55</a></span>&#160;    <a class="code" href="class_delete_command.html#a8fadac20f0112e6602ae4cf0abaa8f39">DeleteCommand</a> (<a class="code" href="local_types_8h.html#ab119e5463fbd3af25e93c81bd306ae54">SelectionPtr</a> selection_ptr, <a class="code" href="local_types_8h.html#ab270fe8bf56ceef23c1c5fbe384c9430">CloudPtr</a> cloud_ptr);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;   </div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="class_delete_command.html#abd09e11a18912be628f5e9cc5758f581">   58</a></span>&#160;    <a class="code" href="class_delete_command.html#abd09e11a18912be628f5e9cc5758f581">~DeleteCommand</a> ()</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    {</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    }</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    </div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="class_delete_command.html#a2dc9886c907bedee2e33023c4d297eaf">   65</a></span>&#160;    <a class="code" href="class_delete_command.html#a2dc9886c907bedee2e33023c4d297eaf">execute</a> ();</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    </div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_delete_command.html#ac53659eadd10cbc4d3ce9e7f9fac7f5f">   69</a></span>&#160;    <a class="code" href="class_delete_command.html#ac53659eadd10cbc4d3ce9e7f9fac7f5f">undo</a> ();</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  <span class="keyword">private</span>:</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_delete_command.html#a7235724e203e44d352b4b0b6e675d044">   73</a></span>&#160;    <a class="code" href="class_delete_command.html#a7235724e203e44d352b4b0b6e675d044">DeleteCommand</a> ():  <a class="code" href="class_delete_command.html#ab7bad2258bfec8c17b4a523776e9c6f2">deleted_selection_</a>(<a class="code" href="local_types_8h.html#ab270fe8bf56ceef23c1c5fbe384c9430">CloudPtr</a>())</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;      assert(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    }</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="class_delete_command.html#aae155ae9296da4c872d9f82a9bee9b3e">   79</a></span>&#160;    <a class="code" href="class_delete_command.html#aae155ae9296da4c872d9f82a9bee9b3e">DeleteCommand</a> (<span class="keyword">const</span> <a class="code" href="class_delete_command.html">DeleteCommand</a>&amp; c)</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;      : <a class="code" href="class_delete_command.html#ab7bad2258bfec8c17b4a523776e9c6f2">deleted_selection_</a>(c.<a class="code" href="class_delete_command.html#ab7bad2258bfec8c17b4a523776e9c6f2">deleted_selection_</a>)</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    {</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;      assert(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    }</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <a class="code" href="class_delete_command.html">DeleteCommand</a>&amp;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_delete_command.html#ab72d9d8f4e4a5b6605ddd47b671d79a8">   87</a></span>&#160;    <a class="code" href="class_delete_command.html#ab72d9d8f4e4a5b6605ddd47b671d79a8">operator= </a>(<span class="keyword">const</span> <a class="code" href="class_delete_command.html">DeleteCommand</a>&amp;)</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    {</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;      assert(<span class="keyword">false</span>); <span class="keywordflow">return</span> (*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    }</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="class_delete_command.html#ac6a75897311eab4a7c34ac5496be46bc">   93</a></span>&#160;    <a class="code" href="local_types_8h.html#ab270fe8bf56ceef23c1c5fbe384c9430">CloudPtr</a> <a class="code" href="class_delete_command.html#ac6a75897311eab4a7c34ac5496be46bc">cloud_ptr_</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="class_delete_command.html#aca95c72434af3b472258d8a7873dac11">   96</a></span>&#160;    <a class="code" href="local_types_8h.html#ab119e5463fbd3af25e93c81bd306ae54">SelectionPtr</a> <a class="code" href="class_delete_command.html#aca95c72434af3b472258d8a7873dac11">selection_ptr_</a>;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="class_delete_command.html#ab7bad2258bfec8c17b4a523776e9c6f2">  100</a></span>&#160;    <a class="code" href="class_selection.html">Selection</a> <a class="code" href="class_delete_command.html#ab7bad2258bfec8c17b4a523776e9c6f2">deleted_selection_</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="class_delete_command.html#ab4c16ec16f977168bd04f9af44d71683">  103</a></span>&#160;    <a class="code" href="class_copy_buffer.html">CopyBuffer</a> <a class="code" href="class_delete_command.html#ab4c16ec16f977168bd04f9af44d71683">deleted_cloud_buffer_</a>;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;};</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// DELETE_COMMAND_H_</span></div>
<div class="ttc" id="aclass_command_html"><div class="ttname"><a href="class_command.html">Command</a></div><div class="ttdoc">The abstract parent class of all the command classes. Commands are non-copyable.</div><div class="ttdef"><b>Definition:</b> command.h:50</div></div>
<div class="ttc" id="aclass_copy_buffer_html"><div class="ttname"><a href="class_copy_buffer.html">CopyBuffer</a></div><div class="ttdoc">a buffer holding the points being copied and a set of operations for manipulating the buffer.</div><div class="ttdef"><b>Definition:</b> copyBuffer.h:50</div></div>
<div class="ttc" id="aclass_delete_command_html"><div class="ttname"><a href="class_delete_command.html">DeleteCommand</a></div><div class="ttdef"><b>Definition:</b> deleteCommand.h:50</div></div>
<div class="ttc" id="aclass_delete_command_html_a2dc9886c907bedee2e33023c4d297eaf"><div class="ttname"><a href="class_delete_command.html#a2dc9886c907bedee2e33023c4d297eaf">DeleteCommand::execute</a></div><div class="ttdeci">void execute()</div><div class="ttdoc">Removes the selected points and maintains a backup for undo.</div></div>
<div class="ttc" id="aclass_delete_command_html_a7235724e203e44d352b4b0b6e675d044"><div class="ttname"><a href="class_delete_command.html#a7235724e203e44d352b4b0b6e675d044">DeleteCommand::DeleteCommand</a></div><div class="ttdeci">DeleteCommand()</div><div class="ttdoc">Default constructor - object is not default constructable</div><div class="ttdef"><b>Definition:</b> deleteCommand.h:73</div></div>
<div class="ttc" id="aclass_delete_command_html_a8fadac20f0112e6602ae4cf0abaa8f39"><div class="ttname"><a href="class_delete_command.html#a8fadac20f0112e6602ae4cf0abaa8f39">DeleteCommand::DeleteCommand</a></div><div class="ttdeci">DeleteCommand(SelectionPtr selection_ptr, CloudPtr cloud_ptr)</div><div class="ttdoc">Constructor</div></div>
<div class="ttc" id="aclass_delete_command_html_aae155ae9296da4c872d9f82a9bee9b3e"><div class="ttname"><a href="class_delete_command.html#aae155ae9296da4c872d9f82a9bee9b3e">DeleteCommand::DeleteCommand</a></div><div class="ttdeci">DeleteCommand(const DeleteCommand &amp;c)</div><div class="ttdoc">Copy constructor - commands are non-copyable</div><div class="ttdef"><b>Definition:</b> deleteCommand.h:79</div></div>
<div class="ttc" id="aclass_delete_command_html_ab4c16ec16f977168bd04f9af44d71683"><div class="ttname"><a href="class_delete_command.html#ab4c16ec16f977168bd04f9af44d71683">DeleteCommand::deleted_cloud_buffer_</a></div><div class="ttdeci">CopyBuffer deleted_cloud_buffer_</div><div class="ttdoc">a copy buffer which backs up the points deleted from the cloud.</div><div class="ttdef"><b>Definition:</b> deleteCommand.h:103</div></div>
<div class="ttc" id="aclass_delete_command_html_ab72d9d8f4e4a5b6605ddd47b671d79a8"><div class="ttname"><a href="class_delete_command.html#ab72d9d8f4e4a5b6605ddd47b671d79a8">DeleteCommand::operator=</a></div><div class="ttdeci">DeleteCommand &amp; operator=(const DeleteCommand &amp;)</div><div class="ttdoc">Equal operator - commands are non-copyable</div><div class="ttdef"><b>Definition:</b> deleteCommand.h:87</div></div>
<div class="ttc" id="aclass_delete_command_html_ab7bad2258bfec8c17b4a523776e9c6f2"><div class="ttname"><a href="class_delete_command.html#ab7bad2258bfec8c17b4a523776e9c6f2">DeleteCommand::deleted_selection_</a></div><div class="ttdeci">Selection deleted_selection_</div><div class="ttdef"><b>Definition:</b> deleteCommand.h:100</div></div>
<div class="ttc" id="aclass_delete_command_html_abd09e11a18912be628f5e9cc5758f581"><div class="ttname"><a href="class_delete_command.html#abd09e11a18912be628f5e9cc5758f581">DeleteCommand::~DeleteCommand</a></div><div class="ttdeci">~DeleteCommand()</div><div class="ttdoc">Destructor</div><div class="ttdef"><b>Definition:</b> deleteCommand.h:58</div></div>
<div class="ttc" id="aclass_delete_command_html_ac53659eadd10cbc4d3ce9e7f9fac7f5f"><div class="ttname"><a href="class_delete_command.html#ac53659eadd10cbc4d3ce9e7f9fac7f5f">DeleteCommand::undo</a></div><div class="ttdeci">void undo()</div><div class="ttdoc">Returns the deleted points to the cloud, Order is not preserved.</div></div>
<div class="ttc" id="aclass_delete_command_html_ac6a75897311eab4a7c34ac5496be46bc"><div class="ttname"><a href="class_delete_command.html#ac6a75897311eab4a7c34ac5496be46bc">DeleteCommand::cloud_ptr_</a></div><div class="ttdeci">CloudPtr cloud_ptr_</div><div class="ttdoc">a pointer pointing to the cloud</div><div class="ttdef"><b>Definition:</b> deleteCommand.h:93</div></div>
<div class="ttc" id="aclass_delete_command_html_aca95c72434af3b472258d8a7873dac11"><div class="ttname"><a href="class_delete_command.html#aca95c72434af3b472258d8a7873dac11">DeleteCommand::selection_ptr_</a></div><div class="ttdeci">SelectionPtr selection_ptr_</div><div class="ttdoc">A shared pointer pointing to the selection object.</div><div class="ttdef"><b>Definition:</b> deleteCommand.h:96</div></div>
<div class="ttc" id="aclass_selection_html"><div class="ttname"><a href="class_selection.html">Selection</a></div><div class="ttdoc">This class serves as a sort of mask for performing operations on a point cloud. It keeps track of the...</div><div class="ttdef"><b>Definition:</b> selection.h:53</div></div>
<div class="ttc" id="acommand_8h_html"><div class="ttname"><a href="command_8h.html">command.h</a></div></div>
<div class="ttc" id="acopy_buffer_8h_html"><div class="ttname"><a href="copy_buffer_8h.html">copyBuffer.h</a></div></div>
<div class="ttc" id="alocal_types_8h_html"><div class="ttname"><a href="local_types_8h.html">localTypes.h</a></div></div>
<div class="ttc" id="alocal_types_8h_html_ab119e5463fbd3af25e93c81bd306ae54"><div class="ttname"><a href="local_types_8h.html#ab119e5463fbd3af25e93c81bd306ae54">SelectionPtr</a></div><div class="ttdeci">boost::shared_ptr&lt; Selection &gt; SelectionPtr</div><div class="ttdoc">The type for boost shared pointer pointing to a selection buffer</div><div class="ttdef"><b>Definition:</b> localTypes.h:79</div></div>
<div class="ttc" id="alocal_types_8h_html_ab270fe8bf56ceef23c1c5fbe384c9430"><div class="ttname"><a href="local_types_8h.html#ab270fe8bf56ceef23c1c5fbe384c9430">CloudPtr</a></div><div class="ttdeci">boost::shared_ptr&lt; Cloud &gt; CloudPtr</div><div class="ttdoc">The type for boost shared pointer pointing to a cloud object</div><div class="ttdef"><b>Definition:</b> localTypes.h:72</div></div>
<div class="ttc" id="aselection_8h_html"><div class="ttname"><a href="selection_8h.html">selection.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_9654b8d08f4bba4e84b362c5fd320bee.html">apps</a></li><li class="navelem"><a class="el" href="dir_b812044310263d1df0acdcc34fa78063.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="dir_e7676f72fdf944a58a9890202aea4fdd.html">include</a></li><li class="navelem"><a class="el" href="dir_f36a0c0a6789487b19709622e8aaedff.html">pcl</a></li><li class="navelem"><a class="el" href="dir_dfd6ef21606ddfa5cd0b7ee0903ae9ec.html">apps</a></li><li class="navelem"><a class="el" href="dir_4eea226eade4b66d41c153c54681c108.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="delete_command_8h.html">deleteCommand.h</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
